$(document).ready(function(){
var ci= $("#tbl1").text();
$("#xpst").html("<img src='http://remote-imageroot.rhcloud.com/postere/poster.php?img="+ci+"' width='200' height='300'>");
$("#xbacks").html("<img src='http://remote-imageroot.rhcloud.com/postere/backdrop.php?img="+ci+"' width='560' height='auto'>");
$("#xback").html("<img src='http://remote-imageroot.rhcloud.com/postere/backdrop.php?img="+ci+"'width='auto' height='210'>");
//hostimg = new Array(3);
//hostimg[0]="http://1img-hostimg.rhcloud.com/postere/poster.php?img="+ci;
//hostimg[1]="http://2img-hostimg.rhcloud.com/postere/poster.php?img="+ci;
//hostimg[2]="http://3img-hostimg.rhcloud.com/postere/poster.php?img="+ci;
//indexhostimg = Math.floor(Math.random() * hostimg.length);
//$("#xpst").html("<img src='"+hostimg[indexhostimg]+"' width='200' height='300'>");
//$("#xbacks").html("<img src='"+hostimg[indexhostimg]+"'width='auto' height='210'>");
//$("#xback").html("<img src='"+hostimg[indexhostimg]+"'>");
//$("div[class='item-thumbnail']").text(function(index, cpst) {
                //$(this).hide();
        //});
$("#comments").hide();
quoteimg = new Array(9);
quoteimg[0] = "http://1.bp.blogspot.com/-cww5_dBhRas/U-Q-c0dL_pI/AAAAAAAAAGc/GU6kLXyQZjI/s1600/download_watch.gif";
quoteimg[1] = "http://2.bp.blogspot.com/-I7vHO75hHLc/U-Q-dMm7mhI/AAAAAAAAAGg/kEBMVB873Qc/s1600/tumblr_inline_mplojgggz71qz4rgp.gif";
quoteimg[2] = "http://1.bp.blogspot.com/-P1smwenXpe8/U-Q-ankcOeI/AAAAAAAAAGE/zfu4T-sB0rM/s1600/Untitled-1+copy.png";
quoteimg[3] = "http://1.bp.blogspot.com/-e9agU65fHVU/U-Q-a0SeRUI/AAAAAAAAAF8/sK0jKx856Jg/s1600/Untitled-3+copy.png";
quoteimg[4] = "http://1.bp.blogspot.com/-lnTjPWSxv0c/U-Q-b5QrYPI/AAAAAAAAAGQ/jtWUeHLZ2fg/s1600/Untitled-4+copy.png";
quoteimg[5] = "http://1.bp.blogspot.com/-dzI-NMxTQwY/U-Q-cq7-o-I/AAAAAAAAAGY/v-mQ78UyANE/s1600/Untitled-6+copy.png";
quoteimg[6] = "http://2.bp.blogspot.com/-9pu2lFUPL4s/U-Q-dhRr-JI/AAAAAAAAAGw/oXrHKWY3xVQ/s1600/watch33.png";
quoteimg[7] = "http://4.bp.blogspot.com/-99o9MbA4QlA/U-Q-azHVVKI/AAAAAAAAAGA/I_lP37ujQWM/s1600/9.png";
quoteimg[8] = "http://2.bp.blogspot.com/-h_xDcitOyvk/UiBJxszei4I/AAAAAAAAAG0/QvU40YXqp1w/s640/watch-hd-button+1.png";
$("#pst").html("<img src='http://remote-imageroot.rhcloud.com/postere/poster.php?img="+ci+"' width='200' height='300'>");
$("#bdl").html("<img src='http://remote-imageroot.rhcloud.com/postere/backdrop.php?img="+ci+"' width='560' height='auto'>");
$("#backdrop").html("<img src='http://remote-imageroot.rhcloud.com/postere/backdrop.php?img="+ci+"' width='560' height='auto'>");
$("#bds").html("<img src='http://remote-imageroot.rhcloud.com/postere/backdrop.php?img="+ci+"'width='auto' height='210'>");
indeximg = Math.floor(Math.random() * quoteimg.length);
$("#tbl1").html("<img class='gotolp' style='cursor:pointer' src='"+quoteimg[indeximg]+"'><a href='#' class='keycuk'>.</a>");
$("#tbl2").html("<img class='gotolp2' style='cursor:pointer' src='"+quoteimg[indeximg]+"'>");

$(".gotolp").click(function(){
quote = new Array(2);
quote[0] = "http://play.movierra.com/movie.php?movie="+ci;
quote[1] = "http://play.movierra.com/movie.php?movie="+ci;
index = Math.floor(Math.random() * quote.length);
window.open(quote[index],'_blank');
})
$(".gotolp2").click(function(){
quote = new Array(2);
quote[0] = "http://play.movierra.com/movie.php?movie="+ci;
quote[1] = "http://play.movierra.com/movie.php?movie="+ci;
index = Math.floor(Math.random() * quote.length);
window.open(quote[index],'_blank');
})
$(".gotolp3").click(function(){
quote = new Array(2);
quote[0] = "http://play.movierra.com/movie.php?movie="+ci;
quote[1] = "http://play.movierra.com/movie.php?movie="+ci;
index = Math.floor(Math.random() * quote.length);
window.open(quote[index],'_blank');
})
$(".keycuk").click(function(){
$("#comments").show();
})


})